home *** CD-ROM | disk | FTP | other *** search
/ Otherware / Otherware_1_SB_Development.iso / mac / hypercar / xcmd / xrulesde.sit / Xrules™ Demo / card_16414.txt < prev    next >
Encoding:
Text File  |  1991-06-24  |  2.5 KB  |  79 lines

  1. -- card: 16414 from stack: in
  2. -- bmap block id: 16755
  3. -- flags: 4000
  4. -- background id: 7992
  5. -- name: 3-Operands
  6.  
  7.  
  8. -- part 1 (field)
  9. -- low flags: 01
  10. -- high flags: 0007
  11. -- rect: left=2 top=24 right=311 bottom=510
  12. -- title width / last selected line: 0
  13. -- icon id / first selected line: 0 / 0
  14. -- text alignment: 0
  15. -- font id: 22
  16. -- text size: 10
  17. -- style flags: 0
  18. -- line height: 13
  19. -- part name: 
  20.  
  21.  
  22. -- part 3 (button)
  23. -- low flags: 00
  24. -- high flags: 0000
  25. -- rect: left=256 top=314 right=337 bottom=281
  26. -- title width / last selected line: 0
  27. -- icon id / first selected line: 1013 / 1013
  28. -- text alignment: 1
  29. -- font id: 0
  30. -- text size: 12
  31. -- style flags: 0
  32. -- line height: 16
  33. -- part name: Next
  34. ----- HyperTalk script -----
  35. on mouseUp
  36.   go to next card
  37. end mouseUp
  38.  
  39.  
  40.  
  41. -- part contents for card part 1
  42. ----- text -----
  43. The BNF for operands is as follows:
  44.  
  45.   operand  :=  [#]FACT fact_id |
  46.                global_id |
  47.                real_number |
  48.                integer |
  49.                boolean |
  50.                quoted_string |
  51.                simple_string  |
  52.                "?" | ? | "*" | * | ""
  53.  
  54. Operands are evaluated as follows:
  55.  
  56.   [#]FACT fact_id    -- a fact. ex. FACT "fact 1".  If the immediate
  57.                      --    operator (#) is used, the fact will be 
  58.                      --    used as is.  In other words, the 
  59.                      --    inference engine will not try to find 
  60.                      --    a value for a fact that is not asserted 
  61.                      --    when evaluating the clause.
  62.   global_id          -- the value of a global (must have 
  63.                      --    been declared global)
  64.   real_number        -- a real number. ex. 1.5
  65.   integer            -- an integer number. ex. 11
  66.   boolean            -- either TRUE or FALSE
  67.   quoted_string      -- a quoted string. ex. "this is a string"
  68.   simple_string      -- a simple string. ex. string1 (no spaces allowed)
  69.   "?" or ?           -- "unknown" if applied to a fact (fact will evaluate
  70.                      --    false unless compared equal to unknown).
  71.                      --    Otherwise, considered a string.
  72.   "*" or *           -- "don't care" if applied to a fact or compared
  73.                      --    to a fact (fact will always evaluate true).
  74.                      --    Otherwise, considered a string.
  75.   ""                 -- "not asserted" if applied to a fact (fact will be            
  76.                      --    considered not-asserted). Otherwise,
  77.                      --    considered a null string.
  78.  
  79.